/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package empsession;

import deptentity.DeptComponent;
import empentity.EmpComponent;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.math.BigDecimal;
import java.rmi.RemoteException;
import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBObject;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;

/**
 *
 * @author user
 */
public interface EmpSessionComponent extends EJBObject{
	public void importEmp(ByteArrayInputStream bais) throws FinderException, RemoteException;
	public ByteArrayOutputStream exportEmp(String byWhat, BigDecimal empno, Collection empnos, BigDecimal deptno) throws FinderException, RemoteException;
	public ByteArrayOutputStream exportDept(String byWhat, BigDecimal empno, Collection empnos, BigDecimal deptno) throws FinderException, RemoteException;
	public Collection getEmpByDept(BigDecimal deptno) throws FinderException, RemoteException;
    public EmpComponent getEmpByEmpno(BigDecimal empno) throws FinderException, RemoteException;
    public Collection getEmpsByListOfEmpno(Collection empnos) throws FinderException, RemoteException;
    public Collection getEmpByName(String ename) throws FinderException, RemoteException;
    public Collection getAllEmp() throws FinderException, RemoteException;
    public EmpComponent createEmp(BigDecimal empno, String ename, String job, BigDecimal mgr, java.sql.Date hiredate, BigDecimal sal, BigDecimal comm, BigDecimal deptno) throws CreateException, RemoteException;
    public void deleteEmp(BigDecimal empno) throws RemoteException, RemoveException;
    public Collection getEmpByJob(String job) throws RemoteException;
    public DeptComponent createDept(BigDecimal deptno, String dname, String loc) throws CreateException, RemoteException;
    public Collection getDeptByLocation(String loc) throws FinderException, RemoteException;
    public Collection getDeptByName(String name) throws FinderException, RemoteException;
    public Collection getAllDept() throws FinderException, RemoteException;
    public DeptComponent getDeptByDeptno(BigDecimal deptno) throws FinderException, RemoteException;
    public void deleteDept(BigDecimal deptno) throws RemoteException, RemoveException;
   
}
